import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	notice_list: apix + '/system/notice/list',
	notice_export: apix + '/system/notice/export',
	system_notice: apix + '/system/notice',
	// system_notice: apix + '/system/notice',
	system_noticeId: apix + '/system/notice/',
}

//查询约车信息列表
export function noticeList(obj) {
	return request.get(api.notice_list, {
		...obj
	})
}
//导出约车信息列表
export function noticeExport(obj) {
	return request.post(api.notice_export, {
		...obj
	})
}
//获取约车信息详细信息
export function noticeId(id) {
	return request.get(api.system_noticeId + id)
}
//新增约车信息
export function addnotice(obj) {
	return request.post(api.system_notice, {
		...obj
	})
}
//修改约车信息
export function putnotice(obj) {
	return request.put(api.system_notice, {
		...obj
	})
}
//删除约车信息
export function delnotice(id) {
	return request.delete(api.system_noticeId + id)
}